Function OPTIMIZE_FILTER
Package
filters
Short description
Optimize filter representation
Usage
filter = OPTIMIZE_FILTER(filter_f, lowpass, options)
Input
filter_f (numeric): The Fourier transform of the filter.
lowpass (boolean): If true, filter_f contains a lowpass filter.
options (struct): Various options on how to optimize the filter:
options.filter_format (char): Specifies the type of optimization,
either 'fourier', 'fourier_multires' or 'fourier_truncated'. See
description for more details.
options.truncate_threshold (numeric): If options.filter_format is
'fourier_truncated', this indicates the threshold to be passed on
to TRUNCATE_FILTER. See the documentation of this function for more
details.
Output
filter (struct or numeric): The optimized filter structure.
Description
Depending on the value of options.filter_format, OPTIMIZE_FILTER calls
different functions to optimize the filter representation. If 'fourier',
the function retains the Fourier representation of the filter. If
'fourier_multires', the filter is periodized and stored at all resolu-
tions using PERIODIZE_FILTER. Finally, if it equals 'fourier_truncated',
TRUNCATE_FILTER is called on filter_f.
See also
List of all packages